Repository navigation
GH Issue 1887: Fix NPE when publishing a study with specimens - #8327
Conversation
labkey-jeckels
left a comment
There was a problem hiding this comment.
Do we need an automated test for this?
I think I can adjust |
Actually, I confirmed that the StudyPublishTest on 26.7 exercises this code and would flag a regression: https://teamcity.labkey.org/buildConfiguration/LabKey_267Release_Community_DailySuites_DailyEPostgres/4260133 That test didn't flag the problem (and won't flag a regression) in 26.3 because, in that release, the QueryBasedSpecimenTransform was dependent on the Professional module being present, and these tests always run on community builds. The refactor I did in 26.7 added the null check and removed the Professional module check. I'm not going to bother adding a 26.3 regression test. |
## Rationale Make all `FileType.isType()` handle `null` values, for consistency. Document this with `@Nullable` annotation. ## Related Pull Requests - #8327
Rationale
A
FileLikerefactor causeddoImport()to passnullto aFileType.isType()method that doesn't handle nullsRelated Pull Requests